package cn.itcast.bos.dao.system;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.system.User;

public interface UserDao extends JpaRepository<User, Integer> {

	User findByUsername(String username);

	@Query("update User set password = ? where id = ?")
	@Modifying
	void update(String txtNewPass, Integer id);
	
	

}
